home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: LaTeX Document
(document/latex).
You can browse this item here: printmat.tex
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| LaTeX Document (document/latex)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| LaTeX document text
| default
| |
99%
| file
| LaTeX document, ASCII text, with CR line terminators
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/281 LaTeX (Subdocument)
| default
| |
100%
| detectItEasy
| Format: plain text[CR]
| default (weak)
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [ttxt] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 5c 73 65 63 74 69 6f 6e | 7b 70 72 69 6e 74 6d 61 |\section|{printma|
|00000010| 74 20 2d 2d 2d 20 50 72 | 65 74 74 79 20 70 72 69 |t --- Pr|etty pri|
|00000020| 6e 74 20 61 20 6d 61 74 | 72 69 78 7d 0d 5c 6c 61 |nt a mat|rix}.\la|
|00000030| 62 65 6c 7b 66 6e 3a 70 | 72 69 6e 74 6d 61 74 7d |bel{fn:p|rintmat}|
|00000040| 0d 5c 69 6e 64 65 78 7b | 70 72 69 6e 74 6d 61 74 |.\index{|printmat|
|00000050| 28 29 7d 0d 5c 69 6e 64 | 65 78 7b 70 72 65 74 74 |()}.\ind|ex{prett|
|00000060| 79 20 70 72 69 6e 74 20 | 61 20 6d 61 74 72 69 78 |y print |a matrix|
|00000070| 7d 0d 5c 69 6e 64 65 78 | 7b 6d 61 74 72 69 78 28 |}.\index|{matrix(|
|00000080| 29 21 64 69 73 70 6c 61 | 79 7d 20 0d 5c 62 65 67 |)!displa|y} .\beg|
|00000090| 69 6e 7b 72 61 69 6c 7d | 0d 50 72 69 6e 74 4d 61 |in{rail}|.PrintMa|
|000000a0| 74 20 3a 20 27 70 72 69 | 6e 74 6d 61 74 27 20 27 |t : 'pri|ntmat' '|
|000000b0| 28 27 20 4d 61 74 72 69 | 78 20 28 20 53 74 72 69 |(' Matri|x ( Stri|
|000000c0| 6e 67 20 28 20 27 2c 27 | 20 4d 61 74 72 69 78 20 |ng ( ','| Matrix |
|000000d0| 28 20 27 2c 27 20 4d 61 | 74 72 69 78 29 20 3f 20 |( ',' Ma|trix) ? |
|000000e0| 29 20 3f 20 29 20 3f 20 | 27 29 27 20 3b 0d 5c 65 |) ? ) ? |')' ;.\e|
|000000f0| 6e 64 7b 72 61 69 6c 7d | 0d 0d 5c 76 65 72 62 2b |nd{rail}|..\verb+|
|00000100| 70 72 69 6e 74 6d 61 74 | 2b 20 70 72 69 6e 74 73 |printmat|+ prints|
|00000110| 20 74 68 65 20 6d 61 74 | 72 69 78 20 73 70 65 63 | the mat|rix spec|
|00000120| 69 66 69 65 64 20 62 79 | 20 74 68 65 20 66 69 72 |ified by| the fir|
|00000130| 73 74 20 6d 61 74 72 69 | 78 0d 61 72 67 75 6d 65 |st matri|x.argume|
|00000140| 6e 74 2e 20 49 66 20 74 | 68 65 20 6f 70 74 69 6f |nt. If t|he optio|
|00000150| 6e 61 6c 20 73 74 72 69 | 6e 67 20 61 72 67 75 6d |nal stri|ng argum|
|00000160| 65 6e 74 20 69 73 20 73 | 75 70 70 6c 69 65 64 2c |ent is s|upplied,|
|00000170| 20 69 74 20 69 73 20 75 | 73 65 64 0d 61 73 20 74 | it is u|sed.as t|
|00000180| 68 65 20 74 69 74 6c 65 | 20 2d 2d 2d 20 6f 74 68 |he title| --- oth|
|00000190| 65 77 69 73 65 20 6e 6f | 20 6c 61 62 65 6c 20 69 |ewise no| label i|
|000001a0| 73 20 75 73 65 64 2e 20 | 54 68 65 20 6e 65 78 74 |s used. |The next|
|000001b0| 20 61 72 67 75 6d 65 6e | 74 20 69 73 20 0d 61 20 | argumen|t is .a |
|000001c0| 73 74 72 69 6e 67 20 76 | 65 63 74 6f 72 20 63 6f |string v|ector co|
|000001d0| 6e 74 61 69 6e 69 6e 67 | 20 6c 61 62 65 6c 73 20 |ntaining| labels |
|000001e0| 66 6f 72 20 65 61 63 68 | 20 72 6f 77 2c 20 61 6e |for each| row, an|
|000001f0| 64 20 74 68 65 20 66 69 | 6e 61 6c 20 61 72 67 75 |d the fi|nal argu|
|00000200| 6d 65 6e 74 0d 69 73 20 | 61 20 73 74 72 69 6e 67 |ment.is |a string|
|00000210| 20 76 65 63 74 6f 72 20 | 63 6f 6e 74 61 69 6e 69 | vector |containi|
|00000220| 6e 67 20 6c 61 62 65 6c | 73 20 66 6f 72 20 65 61 |ng label|s for ea|
|00000230| 63 68 20 63 6f 6c 75 6d | 6e 2e 20 20 49 66 20 74 |ch colum|n. If t|
|00000240| 68 65 20 72 6f 77 20 6f | 72 0d 63 6f 6c 75 6d 6e |he row o|r.column|
|00000250| 20 6c 61 62 65 6c 73 20 | 61 72 65 20 6d 69 73 73 | labels |are miss|
|00000260| 69 6e 67 2c 20 6c 61 62 | 65 6c 73 20 61 72 65 20 |ing, lab|els are |
|00000270| 67 65 6e 65 72 61 74 65 | 64 2e 0d 0d 24 5c 4c 6f |generate|d...$\Lo|
|00000280| 6e 67 72 69 67 68 74 61 | 72 72 6f 77 24 20 54 68 |ngrighta|rrow$ Th|
|00000290| 69 73 20 69 73 20 6e 6f | 74 20 61 6e 20 5c 52 4c |is is no|t an \RL|
|000002a0| 61 42 5c 20 62 75 69 6c | 74 2d 69 6e 20 66 75 6e |aB\ buil|t-in fun|
|000002b0| 63 74 69 6f 6e 2e 20 20 | 54 68 69 73 20 66 75 6e |ction. |This fun|
|000002c0| 63 74 69 6f 6e 0d 69 73 | 20 6e 6f 72 6d 61 6c 6c |ction.is| normall|
|000002d0| 79 20 6c 6f 61 64 65 64 | 20 6f 6e 20 73 74 61 72 |y loaded| on star|
|000002e0| 74 2d 75 70 20 66 72 6f | 6d 20 74 68 65 20 5c 76 |t-up fro|m the \v|
|000002f0| 65 72 62 2b 70 72 69 6e | 74 6d 61 74 2e 72 2b 20 |erb+prin|tmat.r+ |
|00000300| 66 69 6c 65 20 69 6e 20 | 74 68 65 0d 73 74 61 6e |file in |the.stan|
|00000310| 64 61 72 64 20 5c 76 65 | 72 62 2b 72 6c 69 62 2b |dard \ve|rb+rlib+|
|00000320| 20 64 69 72 65 63 74 6f | 72 79 2e 20 55 73 65 20 | directo|ry. Use |
|00000330| 6f 66 20 74 68 65 20 5c | 76 65 72 62 2b 2d 72 2b |of the \|verb+-r+|
|00000340| 20 6f 70 74 69 6f 6e 2c | 20 69 6e 63 6f 72 72 65 | option,| incorre|
|00000350| 63 74 6c 79 20 0d 73 65 | 74 74 69 6e 67 20 74 68 |ctly .se|tting th|
|00000360| 65 20 5c 76 65 72 62 2b | 52 4c 41 42 5f 4c 49 42 |e \verb+|RLAB_LIB|
|00000370| 5f 44 49 52 2b 20 65 6e | 76 69 72 6f 6e 6d 65 6e |_DIR+ en|vironmen|
|00000380| 74 61 6c 20 76 61 72 69 | 61 62 6c 65 2c 20 6f 72 |tal vari|able, or|
|00000390| 20 6d 6f 64 69 66 79 69 | 6e 67 0d 5c 76 65 72 62 | modifyi|ng.\verb|
|000003a0| 2b 70 72 69 6e 74 6d 61 | 74 2e 72 2b 20 6d 61 79 |+printma|t.r+ may|
|000003b0| 20 6d 61 6b 65 20 74 68 | 69 73 20 66 75 6e 63 74 | make th|is funct|
|000003c0| 69 6f 6e 20 75 6e 61 76 | 61 69 6c 61 62 6c 65 2e |ion unav|ailable.|
|000003d0| 0d 0d 5c 70 61 72 61 67 | 72 61 70 68 7b 45 78 61 |..\parag|raph{Exa|
|000003e0| 6d 70 6c 65 7d 0d 5c 69 | 6e 64 65 78 7b 65 78 61 |mple}.\i|ndex{exa|
|000003f0| 6d 70 6c 65 20 6f 66 20 | 70 72 69 6e 74 6d 61 74 |mple of |printmat|
|00000400| 28 29 7d 0d 5c 69 6e 64 | 65 78 7b 70 72 69 6e 74 |()}.\ind|ex{print|
|00000410| 6d 61 74 28 29 21 65 78 | 61 6d 70 6c 65 7d 0d 5c |mat()!ex|ample}.\|
|00000420| 62 65 67 69 6e 7b 76 65 | 72 62 61 74 69 6d 7d 0d |begin{ve|rbatim}.|
|00000430| 3e 20 61 20 3d 20 72 61 | 6e 64 28 34 2c 33 29 0d |> a = ra|nd(4,3).|
|00000440| 20 61 20 3d 0d 20 20 20 | 20 20 20 20 20 31 20 20 | a =. | 1 |
|00000450| 20 20 20 30 2e 30 33 36 | 39 20 20 20 20 20 20 30 | 0.036|9 0|
|00000460| 2e 32 30 34 0d 20 20 20 | 20 30 2e 39 37 35 20 20 |.204. | 0.975 |
|00000470| 20 20 20 20 30 2e 31 36 | 32 20 20 20 20 20 20 30 | 0.16|2 0|
|00000480| 2e 31 36 37 0d 20 20 20 | 20 30 2e 36 34 37 20 20 |.167. | 0.647 |
|00000490| 20 20 20 20 30 2e 36 36 | 35 20 20 20 20 20 20 30 | 0.66|5 0|
|000004a0| 2e 36 35 35 0d 20 20 20 | 20 30 2e 33 33 33 20 20 |.655. | 0.333 |
|000004b0| 20 20 20 30 2e 30 38 34 | 37 20 20 20 20 20 20 30 | 0.084|7 0|
|000004c0| 2e 31 32 39 0d 3e 20 43 | 6f 6c 4c 61 62 65 6c 73 |.129.> C|olLabels|
|000004d0| 20 3d 20 5b 22 43 6f 6c | 20 31 22 2c 22 32 6e 64 | = ["Col| 1","2nd|
|000004e0| 22 2c 22 54 68 65 20 74 | 68 69 72 64 20 43 6f 6c |","The t|hird Col|
|000004f0| 75 6d 6e 22 5d 3b 0d 3e | 20 52 6f 77 4c 61 62 65 |umn"];.>| RowLabe|
|00000500| 6c 73 20 3d 20 5b 22 52 | 6f 77 20 31 22 2c 22 73 |ls = ["R|ow 1","s|
|00000510| 65 63 6f 6e 64 20 72 6f | 77 22 2c 22 62 65 61 76 |econd ro|w","beav|
|00000520| 69 73 22 2c 22 62 75 74 | 74 68 65 61 64 22 5d 3b |is","but|thead"];|
|00000530| 0d 3e 20 70 72 69 6e 74 | 6d 61 74 28 61 29 0d 20 |.> print|mat(a). |
|00000540| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 2d 2d 2d | | ---|
|00000550| 2d 31 2d 2d 2d 2d 20 20 | 20 2d 2d 2d 2d 32 2d 2d |-1---- | ----2--|
|00000560| 2d 2d 20 20 20 2d 2d 2d | 2d 33 2d 2d 2d 2d 0d 2d |-- ---|-3----.-|
|00000570| 2d 20 20 31 20 2d 2d 3e | 20 20 20 20 20 20 20 20 |- 1 -->| |
|00000580| 31 2e 30 30 30 30 30 20 | 20 20 20 20 30 2e 30 33 |1.00000 | 0.03|
|00000590| 36 39 34 20 20 20 20 20 | 30 2e 32 30 34 31 34 0d |694 |0.20414.|
|000005a0| 2d 2d 20 20 32 20 2d 2d | 3e 20 20 20 20 20 20 20 |-- 2 --|> |
|000005b0| 20 30 2e 39 37 34 35 32 | 20 20 20 20 20 30 2e 31 | 0.97452| 0.1|
|000005c0| 36 31 37 31 20 20 20 20 | 20 30 2e 31 36 37 33 31 |6171 | 0.16731|
|000005d0| 0d 2d 2d 20 20 33 20 2d | 2d 3e 20 20 20 20 20 20 |.-- 3 -|-> |
|000005e0| 20 20 30 2e 36 34 37 34 | 38 20 20 20 20 20 30 2e | 0.6474|8 0.|
|000005f0| 36 36 34 36 35 20 20 20 | 20 20 30 2e 36 35 34 39 |66465 | 0.6549|
|00000600| 36 0d 2d 2d 20 20 34 20 | 2d 2d 3e 20 20 20 20 20 |6.-- 4 |--> |
|00000610| 20 20 20 30 2e 33 33 33 | 30 39 20 20 20 20 20 30 | 0.333|09 0|
|00000620| 2e 30 38 34 36 37 20 20 | 20 20 20 30 2e 31 32 38 |.08467 | 0.128|
|00000630| 38 32 0d 0d 20 20 20 20 | 20 20 20 20 30 0d 3e 20 |82.. | 0.> |
|00000640| 70 72 69 6e 74 6d 61 74 | 28 61 2c 20 22 4d 79 20 |printmat|(a, "My |
|00000650| 76 65 72 79 20 6f 77 6e | 20 6c 61 62 65 6c 22 2c |very own| label",|
|00000660| 20 52 6f 77 4c 61 62 65 | 6c 73 2c 20 43 6f 6c 4c | RowLabe|ls, ColL|
|00000670| 61 62 65 6c 73 29 3b 0d | 0d 4d 79 20 76 65 72 79 |abels);.|.My very|
|00000680| 20 6f 77 6e 20 6c 61 62 | 65 6c 20 3d 0d 0d 20 20 | own lab|el =.. |
|00000690| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000006a0| 20 43 6f 6c 20 31 20 20 | 20 20 20 20 20 20 20 32 | Col 1 | 2|
|000006b0| 6e 64 54 68 65 20 74 68 | 69 72 64 20 43 6f 6c 75 |ndThe th|ird Colu|
|000006c0| 6d 6e 0d 52 6f 77 20 31 | 20 20 20 20 20 20 20 20 |mn.Row 1| |
|000006d0| 20 20 20 20 31 2e 30 30 | 30 30 30 20 20 20 20 20 | 1.00|000 |
|000006e0| 30 2e 30 33 36 39 34 20 | 20 20 20 20 30 2e 32 30 |0.03694 | 0.20|
|000006f0| 34 31 34 0d 73 65 63 6f | 6e 64 20 72 6f 77 20 20 |414.seco|nd row |
|00000700| 20 20 20 20 20 30 2e 39 | 37 34 35 32 20 20 20 20 | 0.9|7452 |
|00000710| 20 30 2e 31 36 31 37 31 | 20 20 20 20 20 30 2e 31 | 0.16171| 0.1|
|00000720| 36 37 33 31 0d 62 65 61 | 76 69 73 20 20 20 20 20 |6731.bea|vis |
|00000730| 20 20 20 20 20 20 30 2e | 36 34 37 34 38 20 20 20 | 0.|64748 |
|00000740| 20 20 30 2e 36 36 34 36 | 35 20 20 20 20 20 30 2e | 0.6646|5 0.|
|00000750| 36 35 34 39 36 0d 62 75 | 74 74 68 65 61 64 20 20 |65496.bu|tthead |
|00000760| 20 20 20 20 20 20 20 30 | 2e 33 33 33 30 39 20 20 | 0|.33309 |
|00000770| 20 20 20 30 2e 30 38 34 | 36 37 20 20 20 20 20 30 | 0.084|67 0|
|00000780| 2e 31 32 38 38 32 0d 5c | 65 6e 64 7b 76 65 72 62 |.12882.\|end{verb|
|00000790| 61 74 69 6d 7d 0d 0d 5c | 6e 65 77 70 61 67 65 0d |atim}..\|newpage.|
|000007a0| 0d 0d | |.. | |
+--------+-------------------------+-------------------------+--------+--------+